package com.shiyi.system.mapper;

import com.shiyi.core.vo.Menu;
import com.shiyi.system.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author shiyi
 * @since 2020-11-19
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 查询所有菜单
     */
    List<Menu> listMenu();

    /**
     * 根据menuIds查询菜单
     */
    List<Menu> listMenusByMenuIds(@Param("menuIds") List<Integer> menuIds);
}
